import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.LangDataKeys

class TestAction : AnAction() {
    override fun actionPerformed(event: AnActionEvent) {
        val actionFolder = event.getData(LangDataKeys.VIRTUAL_FILE)
        val path = actionFolder!!.canonicalPath
        println("已选择路径：$path")
    }
}